<script>
	export default {
		onLaunch: function() {
			const userToken = uni.getStorageSync('user_token');
			if (userToken) {
				uni.reLaunch({
					url: '/pages/mine/index'
				})
			} else {
				uni.reLaunch({
					url: '/pages/login/index'
				})
			}
			// #ifdef  APP-PLUS
			// 锁定屏幕方向
			plus.screen.lockOrientation('portrait-primary');
			// #endif
		},
		onShow: function() {
			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import url("/common/css/common.css");
</style>
